package com.fzu.mmdbproxyframework.model;

import java.sql.SQLException;
import java.util.List;

public interface DBInterf{
	public void setActive(boolean active);
	public boolean isActive();
	public String getDBName();
	public String getMode();
	public String getPort();
	public String getPasswd();
	public void setMode(String mode);
	public void setDBNodeName(String name);
	public String getDBNodeName();
	public void setDBNodeType(String type);
	public String getDBNodeType();
//	public DataSource getMasterDataSource();
//	public DataSource getSlaveDataSource();
//	public void setMasterDataSource(DataSource masterDataSource);
//	public void setSlaveDataSource(DataSource slaveDataSource);
	public void setDataSourceList(List<DataSource> DataSourceList);
	public List<DataSource> getDataSourceList();
	public List<Table> getTableList();
	public void setTableList(List<Table> tableList);
	public void setTableNameList(List<String> list);
	public List<String> getTableNameList();
	public java.sql.Connection getConnection()throws SQLException;//获取当前master数据库链接
	
	
}
